package com.swallow.auth.api.login.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * @author: yangjie.deng@resico.cn
 * @since: 2024-05-13 10:16:03
 * @version: v1.0.0
 * @describe:
 */
@Data
public class RegisterDTO {
    /**
     *  手机号注册
     */
    @NotBlank(message = "注册手机号不能为空")
    private String mobile;

    /**
     *  手机号注册短信验证码
     */
    @NotBlank(message = "短信验证码不能为空")
    private String smsCaptcha;
    /**
     *  用户名
     */
    @NotBlank(message = "用户名不能为空")
    private String username;
    /**
     *  密码
     */
    @NotBlank(message = "密码不能为空")
    @Size(min = 8, max = 20, message = "密码长度不满足,密码长度必须在8-20之间")
    private String password;
}
